Used to apply subindex search to the result of a search operation.

Namespace:  C1.LiveLinq.Indexing.Search
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public virtual IIndexScanner<T, TKey> Subindex<TKey>(
	Subindex<T, TKey> definition
)
Visual Basic
Public Overridable Function Subindex(Of TKey) ( _
	definition As Subindex(Of T, TKey) _
) As IIndexScanner(Of T, TKey)

Parameters

definition
Type: C1.LiveLinq.Indexing..::..Subindex<(Of <(<'T, TKey>)>)>
Subindex to use for narrowing the search.

Type Parameters

TKey
Type of the subindex key.

Return Value

An IIndexScanner<(Of <(<'T, TKey>)>)> collection indexed by the subindex that can be used to perform search operations narrowing the collection.

Remarks

A subindex can be used to further narrow the result of a search operation, if the corresponding subindex exists in the index or subindex used to perform that search operation. For example,
Copy CodeC#
var idxByCity = customers.Indexes(c => c.City);
var subindexByContactTitle = idxByCity.Subindexes(c => c.ContactTitle);
var ownersInLondon = idxByCity.Find("London").Subindex(subindexByContactTitle).Find("Owner");

See Also